import Vue from "vue";
import Vuex from "vuex";
import homeStore from './module/home'
import cartStore from './module/cart'
import addressStore from './module/address'
Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    navFlag: true
  },
  mutations: {
    changeNavFlag (state, flag) {
      state.navFlag = flag;
    }
  },
  actions: {},
  getters: {
    navFlag: state => state.navFlag
  },
  modules: {
    homeStore,
    cartStore,
    addressStore
  }
});
